<template>
  <div class="box">
    <div class="page" v-for="index in 10" :key="index" @click="pageHandler">
      <div class="left">
        <div class="circle">{{ index }}</div>
      </div>
      <div class="right">
        <div class="r_t">
          <span>如何获得第一桶金</span>
        </div>
        <div class="r_b">
          <span>2014年是我毕业啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      // props:[],
      currentId: "",
    };
  },
  //获取路由中id
  created() {
    this.currentId = this.$route.params.id;
  },
  methods: {
    pageHandler() {
      //点击页码的时候跳转进入内容页面
      this.$router.push(`/bookStore/${this.currentId}/pages/content`);
    },
  },
};
</script>

<style lang="scss" src="./style.scss" scoped></style>